package com.catsic.pub.file.service;

import java.util.List;

import com.catsic.base.BaseService;
import com.catsic.pub.condition.FileUploadCondition;
import com.catsic.pub.entity.FileUpload;

public interface FileUploadService extends BaseService <FileUpload, String> {

	/**
	 * 增加
	 * @param file
	 * @return
	 */
	public FileUpload add(FileUpload file);
	
	/**
	 * 通过id查找节点
	 * @param file
	 * @return
	 */
	public FileUpload findById(String id);
	
	 /**
	 * findByFid:通过关联主键查询所有附件
	 * @author yangyudi
	 * @param fid
	 * @return
	 */
	public List<FileUpload> findByFid(String fid);
	
	/**
	 * @param file
	 * @return
	 */
	public List<FileUpload> findAll(FileUploadCondition condition);
	
	
}
